GtkStyleContext *context;
PangoLayout *layout;
int x, y;
- int width, height;
/* Nothing to display at all */
if (gtk_text_get_display_mode (self) == DISPLAY_BLANK)
context = gtk_widget_get_style_context (widget);
layout = gtk_text_ensure_layout (self, TRUE);
- width = gtk_widget_get_width (widget);
- height = gtk_widget_get_height (widget);
gtk_text_get_layout_offsets (self, &x, &y);
cairo_region_t *clip;
cairo_rectangle_int_t clip_extents;
int range[2];
+ int width, height;
+
+ width = gtk_widget_get_width (widget);
+ height = gtk_widget_get_height (widget);
range[0] = MIN (start_index, end_index);
range[1] = MAX (start_index, end_index);